package com.app.model.request;

import com.app.http.HttpDataRequest;
import com.app.model.bean.Page;
import com.app.utils.LoginUtil;

import java.io.Serializable;

/**
 * 请求数据对象,用于封装请求参数
 */
public class ReqObj implements Serializable {

    private String contentType = HttpDataRequest.PROTOCOL_CONTENT_TYPE_JSON;

    protected String token = LoginUtil.getToken();

    private boolean needAuth = true;

    private Page page;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public ReqObj() {
    }

    public ReqObj(String contentType) {
        this.contentType = contentType;
    }

    public boolean needAuth() {
        return needAuth;
    }

    public void setNeedAuth(boolean needAuth) {
        this.needAuth = needAuth;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

}
